package org.senseframework.support.lucene.core;


import org.senseframework.support.lucene.exception.LuceneException;

/**
 * Created by lanjian on 2015/1/14.
 */
public class Index {
    public enum  Field{
        Array,String,Long,Int,Double,Float,Boolen;
    }

    public enum Store{
        Yes,NO;

        public org.apache.lucene.document.Field.Store store(){
            switch (this){
                case Yes:
                    return org.apache.lucene.document.Field.Store.YES;
                case NO:
                    return org.apache.lucene.document.Field.Store.NO;
                default:
                    throw new LuceneException("no store type");
            }
        }
    }
}
